﻿using EntGuayasSLA.BL;
using Ext.Net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EGuayas.Web.Licenciamiento.admin.tabs
{
    public partial class PgWucInforme : pgBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        //
        /// <summary>
        /// Inicializar panel
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnLoadNoDocAdded(object sender, ComponentAddedEventArgs e)
        {
            try
            {
                //
                Ext.Net.Panel panel = (Ext.Net.Panel)e.Control;

                SetCustomConfigNoDoc(panel);
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }

        }

        private void SetCustomConfigNoDoc(Ext.Net.Panel panel)
        {
            SetCustomConfigWucLicAll(panel, Request["IdPageSession"], Request["FaseCode"]);
        }
        protected void btnSession_Click(object sender, DirectEventArgs e)
        {
            try
            {
                Session[Constantes.LListaDocumentos + Request["FaseCode"]] = e.ExtraParams["GridData1"];
                Session[Constantes.LListaArchivosAdd + Request["FaseCode"]] = e.ExtraParams["GridData2"];


            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }
        }
    }
}